﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace LAVAA.DAL.Exceptions
{
    public class ValidationException : Exception
    {
        private ValidationException()
        {
        }

        public ValidationException(string errorMessage, List<ValidationResult> validationMessages)
            : base(errorMessage)
        {
            this.ValidationMessages = validationMessages;
        }

        public List<ValidationResult> ValidationMessages { get; set; }
    }
}
